import { director } from "cc";

export class Time {
    public static get deltaTime() {
        return director.getDeltaTime() * this._timeScale;
    }
    public static get unScaleDeltaTime() {
        return director.getDeltaTime();
    }
    private static _timeScale = 1;
    public static get timeScale() {
        return this._timeScale;
    }
    public static set timeScale(value: number) {
        this._timeScale = value;
    }
}